package com.welike.shibo.eneity;

import lombok.Data;

import java.util.List;

/**
 * @author fangyu
 * @version v1.0.0
 * @since 2019/11/20 7:21 下午
 */
@Data
public class Permisson {

    /**
     * msg : 请求成功
     * code : 100
     * info : {"userPermission":{"menuList":["music","role","log","member","goods","comment","video","user"],"roleId":1,"nickname":"超级用户23","roleName":"管理员","permissionList":["user:list","video:update","role:update","video:add","comment:list","music:update","role:add","article:list","comment:add","log:update","role:list","role:delete","video:delete","goods:delete","user:add","article:add","music:list","goods:list","goods:update","user:update","log:list","goods:add","comment:update","log:delete","comment:delete","article:update","music:add","video:list","log:add","music:delete"],"userId":10003}}
     */

    private String msg;
    private String code;
    private InfoBean info;

    @Data
    public static class InfoBean {
        /**
         * userPermission : {"menuList":["music","role","log","member","goods","comment","video","user"],"roleId":1,"nickname":"超级用户23","roleName":"管理员","permissionList":["user:list","video:update","role:update","video:add","comment:list","music:update","role:add","article:list","comment:add","log:update","role:list","role:delete","video:delete","goods:delete","user:add","article:add","music:list","goods:list","goods:update","user:update","log:list","goods:add","comment:update","log:delete","comment:delete","article:update","music:add","video:list","log:add","music:delete"],"userId":10003}
         */

        private UserPermissionBean userPermission;

        @Data
        public static class UserPermissionBean {
            /**
             * menuList : ["music","role","log","member","goods","comment","video","user"]
             * roleId : 1
             * nickname : 超级用户23
             * roleName : 管理员
             * permissionList : ["user:list","video:update","role:update","video:add","comment:list","music:update","role:add","article:list","comment:add","log:update","role:list","role:delete","video:delete","goods:delete","user:add","article:add","music:list","goods:list","goods:update","user:update","log:list","goods:add","comment:update","log:delete","comment:delete","article:update","music:add","video:list","log:add","music:delete"]
             * userId : 10003
             */

            private int roleId;
            private String nickname;
            private String roleName;
            private int userId;
            private List<String> menuList;
            private List<String> permissionList;
        }
    }
}
